<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改资产')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-asset-edit" th:object="${asset}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">资产ID：</label>
				<div class="col-sm-8">
					<input id="assetId" name="assetId" th:field="*{assetId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">资产名称：</label>
				<div class="col-sm-8">
					<input id="assetName" name="assetName" th:field="*{assetName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">资产类型：</label>
				<div class="col-sm-8">
					<input id="assetTypeId" name="assetTypeId" th:field="*{assetTypeId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">所属组织：</label>
				<div class="col-sm-8">
					<input id="deptId" name="deptId" th:field="*{deptId}" class="form-control" type="text">
				</div>
			</div>
			<hr/>
			<div class="form-group">
				<label class="col-sm-2 control-label">标签ID：</label>
				<div class="col-sm-4">
					<input id="tagId" name="tagId" th:field="*{tagId}" class="form-control" type="text" >
				</div>
				<label class="col-sm-2 control-label">标签类型：</label>
				<div class="col-sm-4">
					<input id="modelType" name="modelType" class="form-control" type="text" readonly="true">
				</div>
			</div>
			<div class="form-group">

				<label class="col-sm-2 control-label">标签型号：</label>
				<div class="col-sm-4">
					<input id="modelNumber" name="modelNumber" class="form-control" type="text" readonly="true">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/asset";
		$("#form-asset-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-asset-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
